package org.meetunexpectedly.entity.middleground;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.meetunexpectedly.entity.BaseEntity;

import java.util.List;

/**
 * @Description: 权限表
 * @Author: pupil
 * @Date: 2024/09/03 下午 8:30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    // 权限父类id
    private Long pId;

    // 权限路径
    private String path;

    // 权限可访问页面地址
    private String href;

    // 权限图标
    private String icon;

    // 权限名称
    private String name;

    // 菜单
    private Integer isMenu;

    // 目标
    private String target;

    // 排序
    private Integer sort;

    // 状态
    private Integer state;

    // 子权限
    @TableField(exist = false)
    private List<Permission> children;
}
